package com.sz.stock.service;

import com.sz.stock.mapper.StockStopPointMapper;
import com.sz.stock.model.StockStopPoint;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StockStopPointServiceImpl implements IStockStopPointService{
    @Autowired
    private StockStopPointMapper stockStopPointMapper;
    @Override
    public List<StockStopPoint> getAll() {
        return stockStopPointMapper.selectByExample(null);
    }

    @Override
    public StockStopPoint getOne(String code) {
        return stockStopPointMapper.selectByStockCode(code);
    }

    @Override
    public Integer add(StockStopPoint stockStopPoint) {
        return stockStopPointMapper.insertSelective(stockStopPoint);
    }
}
